﻿<link href="../skin/default/post.css" rel="stylesheet" type="text/css" />
<div>
<div class="title_cont" id="post_title_bg">
<div class="title_pos">公&nbsp;&nbsp;告</div><div class="more_pos"><a href="cgi.asp?catid=22"><img src="../skin/default/images/more.gif" alt="更多" border="0"/></a></div></div>
<div id="demo" style="overflow:hidden;height:200px;width:100%;border:1px solid #9ec630;">
			<div id="demo1">
              <table border="0" width="100%" height="200px" cellpadding="0" cellspacing="0">
              <%
              sql="select * from info where catID=22 and [delete]=0 order by infoDate desc"
              set rs=GetRecordset(sql,0)
              if not rs.eof and not rs.bof then
              for i=1 to 6
              %>
			  <tr class="td_bg td_vlign"><td class="td_width"><img src="../skin/default/images/line_book.jpg" width="25"/></td><td><b class="font_plus"><a href="cgi.asp?catid=<%=rs("catID")%>&contid=<%=rs("infoID")%>"><%=abstract(rs("infoTitle"),15)%></a></b><br />
			    <a href="cgi.asp?catid=22&contid=<%=rs("infoID")%>"><%=abstract(rs("infoContent"),50)%></a></td>
			  </tr>
			  <%
			    rs.movenext
                if rs.eof then
                    exit for
                end if
                next

                else
                for i=1 to 6
              %>
              <tr class="td_bg td_vlign"><td class="td_width"><img src="../skin/default/images/line_book.jpg" width="25"/></td><td><b class="font_plus"><a href="#">公告标题</a></b><br />
			    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#">暂无公告</a></td>
			  </tr>
			  <%
                next
                end if
              %>
			  </table>
			</div>
			<div id="demo2"></div>
</div>
<script language="javascript" type="text/javascript">
<!--
var demo = document.getElementById("demo");
var demo1 = document.getElementById("demo1");
var demo2 = document.getElementById("demo2");
var speed=60;    //滚动速度值，值越大速度越慢
demo2.innerHTML = demo1.innerHTML    //克隆demo2为demo1
function Marquee(){
    if(demo2.offsetTop-demo.scrollTop<=0)    //当滚动至demo1与demo2交界时
        demo.scrollTop-=demo1.offsetHeight;    //demo跳到最顶端
    else{
        demo.scrollTop++;
    }
}
var MyMar = setInterval(Marquee,speed);        //设置定时器
demo.onmouseover = function(){clearInterval(MyMar)}    //鼠标经过时清除定时器达到滚动停止的目的
demo.onmouseout = function(){MyMar = setInterval(Marquee,speed)}    //鼠标移开时重设定时器
-->
</script>
</div>